﻿using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

/*********************************************************
 * 命名空间 Simple.Framework.Ioc
 * 接口名称 IObjectBuilder
 * 开发人员：zdm
 * 创建时间：2023/11/24 10:08:03
 * 描述说明：
 * 更改历史：
 * 
 * *******************************************************/
namespace Simple.Framework.Ioc
{
	internal interface IObjectBuilder
	{

		public ConcurrentDictionary<string, TypeMapper> typeMapperDic { get; set; }
		/// <summary>
		/// 
		/// </summary>
		/// <param name="constructor"></param>
		/// <returns></returns>
		public object[] CreateParameters(ConstructorInfo constructor);
		/// <summary>
		/// 
		/// </summary>
		/// <param name="Type"></param>
		/// <param name="o"></param>
		/// <param name="AutowiredType"></param>
		public void CreateProperties(Type Type, object o, Type AutowiredType);
		/// <summary>
		/// 
		/// </summary>
		/// <param name="target"></param>
		/// <param name="token"></param>
		/// <returns></returns>
		public object Create(Type target, string token);
		/// <summary>
		/// 
		/// </summary>
		/// <param name="target"></param>
		/// <param name="token"></param>
		/// <returns></returns>
		public object GetService(Type target, string token);

		/// <summary>
		/// 
		/// </summary>
		/// <typeparam name="Target"></typeparam>
		/// <returns></returns>
		public IEnumerable<Target> GetServiceAll<Target>();
	
	}
}
